package com.zsc.edu.testbroadcastreceiver;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;
import android.widget.Toast;

class NetStatusBroadcastReceiver extends BroadcastReceiver {

    @Override
    public void onReceive(Context context, Intent intent) {

        Toast.makeText(context, "接收到网络状态变化的广播", Toast.LENGTH_LONG).show();

        Log.d("NetStatusBroadcast", "" + intent.getAction());

    }
}
